/**
 * Random is a class to manage randomization and seeding.
 * It also incorporates a few static functions for common random
 * patterns generation (ex: a variable name).
 */
function	Random()
{
    this.base		= IObject;
    this.base();

    this._type		= 'Random';
}
Random.prototype	= new IObject;


Random.generateRandomName	= function(length)
{
    var charSet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
    var name    = "";

    for (length = length || 10; length != 0; length--)
    {
        name += charSet.charAt(Math.floor(Math.random() * charSet.length));
    }
    return (name);
}
